// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import App from './App';
import goods from './components/goods/goods';
import ratings from './components/ratings/ratings';
import seller from './components/seller/seller';
<<<<<<< HEAD
import test from './components/test';
=======
>>>>>>> f8e4449940ad9d031d6d60ff59e87e684e960234

import './common/stylus/index.styl';
Vue.config.productionTip = false;

Vue.use(VueRouter);
Vue.use(VueResource);

const routes = [
    {path: '/', component: goods},
    {path: '/goods', component: goods},
    {path: '/ratings', component: ratings},
<<<<<<< HEAD
    {path: '/seller', component: seller},
    {path: '/test', component: test}
=======
    {path: '/seller', component: seller}
>>>>>>> f8e4449940ad9d031d6d60ff59e87e684e960234
];

const router = new VueRouter({
    routes: routes,
    linkActiveClass: 'active'
});

new Vue({
    router,
    render: h => h(App),
    data: {
        eventHub: new Vue()
    }
}).$mount('#app');

// router.push('/goods');
